package com.one.job.domain.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.one.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("tb_exam")
public class Exam extends BaseEntity {
    //    exam_id bigint unsigned not null comment '竞赛编号',
//    title varchar(50) not null comment '竞赛标题',
//    start_time datetime not null comment '竞赛开始时间',
//    end_time datetime not null comment '竞赛结束时间',
//    status tinyint default '0' not null comment '发布状态',
//    create_by bigint(8) NOT NULL COMMENT '创建⽤⼾',
//    create_time datetime NOT NULL COMMENT '创建时间',
//    update_by bigint(8) DEFAULT NULL COMMENT '更新⽤⼾',
//    update_time datetime DEFAULT NULL COMMENT '更新时间',
    @TableId(type = IdType.ASSIGN_ID)
    private Long examId;

    private String title;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private Integer status;
}
